<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" src="{$Think.session.head_img}"/></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong
                                       class="font-bold">{$Think.session.user['login_name']}</strong></span>
                                <span class="text-muted text-xs block">{$Think.session.user['user_name']}<b
                                        class="caret"></b></span>
                                </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a class="J_menuItem" href="/admin/index/welcome">个人资料</a>
                        </li>
                        <li><a class="J_menuItem" href="/admin/sys.user/head">修改头像</a>
                        </li>
                        <li><a class="J_menuItem" href="/admin/sys.user/pwd?id={$Think.session.user['id']}">修改密码</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="{:U('admin/index/logout')}">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">H+
                </div>
            </li>

            <!--菜单栏-->
            {foreach $menus as $vo}
            <li>
                {if condition="count($vo.nodes)>0"}
                <a href="#">
                    <i class="{$vo['icon']}"></i>
                    <span class="nav-label">{$vo.text}</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    {foreach $vo.nodes as $v1}
                    <li>
                        {if condition="count($v1.nodes)>0"}
                        <a href="{$v1.href}">
                            <i class="{$v1['icon']}"></i>
                            {$v1.text}<span class="fa arrow"></span></a>
                        <ul class="nav nav-third-level">
                            {foreach $v1.nodes as $v2}
                            <li><a class="J_menuItem" href="{$v2.href}">{$v2.text}</a></li>
                            {/foreach}
                        </ul>
                        {else/}
                        <a class="J_menuItem" href="{$v1.href}" data-index="0">{$v1.text}</a>
                        {/if}
                    </li>
                    {/foreach}
                </ul>
                {else/}
                <a class="J_menuItem" href="{$vo.href}">
                    <i class="{$vo.icon}"></i>
                    <span class="nav-label">{$vo.text}</span>
                </a>
                {/if}
            </li>
            {/foreach}
        </ul>
    </div>
</nav>